[rhosdt] Fix stage tests branch parameter name for Gangway override - #80118
Conversation
…refix Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
WalkthroughThis PR renames environment variables in distributed-tracing test stage configurations to follow a ChangesDistributed-Tracing Test Stage Parameter Naming
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/pj-rehearse ack |
|
@IshwarKanse: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@IshwarKanse: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: etmurasaki, IshwarKanse The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…refix (openshift#80118) Rename OTEL_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH and TEMPO_TESTS_BRANCH to MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCH in both ref YAMLs and command scripts. The MULTISTAGE_PARAM_OVERRIDE_ prefix is required for ci-operator to recognise the variable as an overridable parameter and inject values passed via Gangway API pod_spec_options into the step container. Without this prefix the pod-level env var is ignored by ci-operator and the step receives an empty string, causing the runtime guard to fire. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
Rename
OTEL_TESTS_BRANCH→MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCHandTEMPO_TESTS_BRANCH→MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCHin the otel and tempo stage test ref YAMLs and command scripts.The
MULTISTAGE_PARAM_OVERRIDE_prefix is required for ci-operator to recognise a variable as an overridable parameter and inject values supplied via Gangway APIpod_spec_options.envsinto the step container. Without the prefix, ci-operator ignores the pod-level env var and the step receives an empty string, causing the runtime guard to fail withis not set.Test plan
MULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCH/MULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCHset clone the correct branch and run tests successfully🤖 Generated with Claude Code
Summary by CodeRabbit
This PR fixes the stage test configuration for distributed tracing (OpenTelemetry and Tempo) by renaming environment variables to use the
MULTISTAGE_PARAM_OVERRIDE_prefix that ci-operator requires to recognize them as overridable parameters.What changed:
OTEL_TESTS_BRANCHtoMULTISTAGE_PARAM_OVERRIDE_OTEL_TESTS_BRANCHin OpenTelemetry stage test configuration and scriptTEMPO_TESTS_BRANCHtoMULTISTAGE_PARAM_OVERRIDE_TEMPO_TESTS_BRANCHin Tempo stage test configuration and scriptWhy it matters:
Without the
MULTISTAGE_PARAM_OVERRIDE_prefix, ci-operator ignores pod-level environment variables and the test steps receive empty strings instead. The prefix is necessary for Gangway API to properly inject branch override values frompod_spec_options.envsinto the step containers. This fix enables the distributed tracing stage jobs to accept custom branch parameters when triggered via Gangway, allowing teams to test against different branches before merging.Impact:
Distributed tracing stage jobs will now correctly receive branch override values from Gangway, and will immediately fail with a clear error message if the required branch variables are not provided, rather than proceeding with empty values.